<?php require_once('Connections/dis01.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_dis01, $dis01);
$query_ls_versiculos = "SELECT verso_id, verso_descricao FROM versiculos ORDER BY verso_id DESC";
$ls_versiculos = mysql_query($query_ls_versiculos, $dis01) or die(mysql_error());
$row_ls_versiculos = mysql_fetch_assoc($ls_versiculos);
$totalRows_ls_versiculos = mysql_num_rows($ls_versiculos);
?>

<!DOCTYPE HTML5">
<html lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
<title>Disseminando.com</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="css/orman.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen" />	

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js">

</script>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<link rel="stylesheet" href="css/slimbox2.css" type="text/css" media="screen" /> 
<script type="text/JavaScript" src="js/slimbox2.js"></script> 

<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css">
</head>
<body id="subpage">

<div id="templatemo_wrapper">
	<div id="templatemo_header">
    	<div id="site_title"><img src="images/logo_projeto.png" width="296" height="76" /></div>
        <div id="templatemo_menu" class="ddsmoothmenu">
  <ul>
                <li><a href="index.php" class="selected">Home</a></li>
                <li><a href="contato.php">Contato</a></li>
            </ul> 
            <br style="clear: left" />
        </div> <!-- end of templatemo_menu -->
    </div> <!-- END of header -->
    
    <div id="templatemo_page_intro">
    	<h1>Deixe seu recado</h1>
        <p><?php echo $row_ls_versiculos['verso_descricao']; ?></p>
    </div>
    
    <div id="templatemo_main">
    	<div class="col_32 left">
            <div id="contact_form">
                <h2>Formulario de Contato</h2>
                <form method="POST" action="envia.php">                
                <div class="col_3 left">                
                    <label for="txtnome">Nome:</label>
<span id="sprytextfield1">
                    <input name="txtnome" type="text" class="input_field" id="txtnome" maxlength="30" />
                    <span class="textfieldRequiredMsg">Obrigatorio.</span></span>
                    <label for="txtemail">Email:</label>
                <span id="sprytextfield2">
                <input name="txtemail" type="text" class="input_field" id="txtemail" maxlength="30" />
                <span class="textfieldRequiredMsg">Obrigatorio.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
              <label for="txtassunto">Assunto:</label>
              <span id="sprytextfield3">
              <input name="txtassunto" type="text" class="input_field" id="txtassunto" maxlength="30" />
              <span class="textfieldRequiredMsg">Obrigatorio.</span></span></div>
                
                <div class="col_3 right">
                    <label for="txtmensagem">Menssagem:</label>
                <span id="sprytextarea1">
                <textarea id="txtmensagem" name="txtmensagem" rows="5" cols="55" class="required"></textarea>
                <span id="countsprytextarea1">&nbsp;</span><span class="textareaRequiredMsg">Obrigatorio.</span><span class="textareaMaxCharsMsg">Tamanho maximo 1000 caracteres.</span></span></div>
                
                <div class="clear"></div>
                 	<input type="submit" name="Submit" value="Enviar" class="submit_btn" />                
              </form>
            </div>    
        </div> 
                
		<div class="col_3 right">
			<h2>Telefones</h2>
			<div class="sidebar_section">
                Tel: 061-9204-0769 (claro)<br />
                Tel: 061-9642-9366 (Vivo) <br />               
                
			</div>
      </div>
        
      <div class="clear"></div>
      
      
                
    </div> <!-- END of main -->
</div> <!-- END of wrapper -->

<div id="templatemo_bottom_wrapper">
	<div id="templatemo_bottom">
    	
        <div class="col col_3">
         <p><iframe frameborder="0" marginwidth="0" marginheight="0" scrolling="No" width="100%" height="30" style= "position: fixed; top: 0%; left: 0%;height: 6%;width: 100%;" src="http://streaming15.hstbr.net/player/radiogospeladoradores"></iframe></p>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div> <!-- END of bottom -->
    
</div> <!-- END of bottom wrapper -->

<div id="templatemo_footer_wrapper">
	<div id="templatemo_footer">
    	 <?php include 'rodape.php' ?>
    </div> <!-- END of footer -->
</div> <!-- END of footer wrapper -->

<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "email");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {maxChars:1000, counterId:"countsprytextarea1", counterType:"chars_remaining"});
//-->
</script>
</body>
</html>
<?php
mysql_free_result($ls_versiculos);
?>
